/*
package mgt.service.idaas;

import com.iwhalecloud.mgtcenter.AbstractBaseTest;
import com.iwhalecloud.mgtcenter.entity.OrgInfo;
import com.iwhalecloud.mgtcenter.entity.UserInfo;
import com.iwhalecloud.mgtcenter.entity.query.AuthorityStaffInfoQuery;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

*/
/**
 * @author: niulei
 * @create: 2020-12-03 15:35:09
 **//*

public class IDaaSServiceImplTest extends AbstractBaseTest {
    @Autowired
    private IDaaSService iDaaSService;

    @Test
    public void testGetRootOrg() {
        iDaaSService.getRootOrg();
    }

    @Test
    public void testGetUserByOrgCode() {
        try {
            List<UserInfo> userByOrgCode = iDaaSService.getUserByOrgCode("310000", 0, 10);
            System.out.println("查询成功：" + userByOrgCode);
        } catch (Exception e) {

        }
    }

    @Test
    public void testGetUsersByFuzzySearch() {
        try {
            List<UserInfo> usersByFuzzySearch = iDaaSService.getUsersByFuzzySearch("");
            System.out.println("查询成功：" + usersByFuzzySearch);
        } catch (Exception e) {

        }
    }

    @Test
    public void testQueryUserByUserCode() {
        try {
            UserInfo userInfo = iDaaSService.queryUserByUserCode("17801130126");
            System.out.println("查询成功：" + userInfo);
        } catch (Exception e) {

        }
    }

    @Test
    public void testQueryAllOrgList() {
        try {
            List<OrgInfo> orgInfos = iDaaSService.queryAllOrgList();
            System.out.println("查询成功：" + orgInfos);
        } catch (Exception e) {

        }
    }

    @Test
    public void testSelectUserInfoByOrgCode() {
        try {
            AuthorityStaffInfoQuery authorityStaffInfoQuery = new AuthorityStaffInfoQuery();
            authorityStaffInfoQuery.setOrgCode("310000");
            List<UserInfo> userInfos = iDaaSService.selectUserInfoByOrgCode(authorityStaffInfoQuery);
            System.out.println("查询成功：" + userInfos);
        } catch (Exception e) {

        }
    }

    @Test
    public void testSelectUserInfoByFuzzyName() {
        try {
            AuthorityStaffInfoQuery authorityStaffInfoQuery = new AuthorityStaffInfoQuery();
            authorityStaffInfoQuery.setOrgCode("310000");
            List<UserInfo> userInfos = iDaaSService.selectUserInfoByFuzzyName(authorityStaffInfoQuery);
            System.out.println("查询成功：" + userInfos);
        } catch (Exception e) {

        }
    }
}*/
